package cn.school.dao;

import cn.school.entity.Subject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author oldliu
 * @since 1.0
 */
public interface SubjectDao {
    public List<Subject> findALL();
    public int add(Subject s);
    public int update(Subject s);
    public List<Subject> search(@Param("pageNo") int pageNo, @Param("pageSize") int pageSize);
    public int searchTotal();

    int del(long id);

    Subject get(long id);

    int checkSubName(String name);

}
